import request from "@/request";

export default {
  createOrder(data) {
    return request({
      url: "/workOrder",
      method: "post",
      data,
    });
  },
  getOrderList(params) {
    return request({
      url: "/workOrder/list",
      method: "get",
      params,
    });
  },
  getOrderMsgList(params) {
    return request({
      url: "/workOrder/msg/list",
      methods: "get",
      params,
    });
  },
  orderSendMsg(data) {
    return request({
      url: "/workOrder/msg/send",
      method: "post",
      data,
    });
  },
  changeOrderStatus(data) {
    return request({
      url: "/workOrder/status",
      method: "post",
      data,
    });
  },
};
